// 登录
import http from "@/utils/request";
export default {
  login(params) {
    return http.post("/rest/v1/user/login", params);
  },
  logout(params) {
    // 退出
    return http.post("/rest/v1/user/logout", params);
  },
  modifyPwd(params) {
    // 更改密码
    return http.post("/rest/v1/user/modifyPwd", params);
  },
  resetPwd(params) {
    // 重置密码
    return http.get(`/rest/v1/user/resetPwd?id=${params.id}`);
  }
};
